package com.nine.dao;

import java.util.List;

import com.nine.entity.Packageitems;

public interface PackageitemsMapper {
	/**
	 * 获取所有套餐明细
	 * @return 套餐明细实体集合
	 */
	List<Packageitems> getAllPackageitems();
	
	/**
	 * 通过套餐编号获取套餐明细
	 * @param pgid
	 * @return 套餐明细实体集合
	 */
	List<Packageitems> getPackageitemsByPgid(String pgid);
	
	/**
	 * 通过套餐编号删除套餐下所有明细
	 * 支持单套餐和多套餐删除
	 * @param pgid 套餐编号数组
	 * @return 影响行数
	 */
	int deleteByPgid(String[] pgid);
	
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    int insert(Packageitems record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    int insertSelective(Packageitems record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    Packageitems selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    int updateByPrimaryKeySelective(Packageitems record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table packageitems
     *
     * @mbggenerated Thu Sep 13 20:05:52 CST 2018
     */
    int updateByPrimaryKey(Packageitems record);
}